package com.gmy.mp.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @version 1.0
 * @Description:
 * @Author 6
 * @Date 2021/8/27 10:24
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {


    private Integer id;
    private String name;
    private String password;
    private String perms;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    // 版本号
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;


    @TableLogic
    private Integer deleted;
}
